2021-10-31 10:19:35

<template>
  <div>
    <el-tree :data="treedata" :props="{label:'abc'}" default-expand-all />
  </div>
</template>

<script>
export default {
  data() {
    return {
      treedata: [
        {
          abc: '总裁办'
        },
        {
          abc: '财务部',
          children: [
            {
              abc: '算钱的'
            },
            {
              abc: '会计'
            },
            {
              abc: '有手就行'
            }
          ]
        },
        {
          abc: '技术部',
          children: [
            {
              abc: '前端'
            },
            {
              abc: '后端',
              children: [
                {
                  abc: 'Java'
                },
                {
                  abc: 'phe'
                }
              ]
            }
          ]
        },
        {
          abc: '培根部'
        }
      ]
    }
  }
}
</script>

<style>

</style>
